package com.michaels;

import com.util.FileUtil;

import java.util.Set;

public class MoreCategory {
    public static void main(String[] args) {
        Set<String> moreMenuSet = FileUtil.readFile2Set("valid_sku_with_more_menu.txt");
        Set<String> allCategoryCodeSet = FileUtil.readFile2Set("all_category_code.txt");
        moreMenuSet.forEach(item->{
            String[] split = item.split("//");
            String menuCode = split[split.length - 1];
            if(!allCategoryCodeSet.contains(menuCode)) {
                //System.out.println(item);

            }
        });

        StringBuilder sb = new StringBuilder();
        sb.append("(");
        moreMenuSet.forEach(item->{
            String[] split = item.split("//");
            String menuCode = split[split.length - 1];
            if(!allCategoryCodeSet.contains(menuCode)) {
                //System.out.println(item);
                sb.append("'");
                sb.append(menuCode);
                sb.append("',");
            }
        });
        sb.append(")");
        System.out.println(sb);
    }
}
